<?php

class Student_Form_TrackerForm extends Zend_Dojo_Form
{
    /**
     * Options to use with select elements
     */
    

   
    /**
     * Form initialization
     *
     * @return void
     */
    public function init()
    {



        $this->setMethod('post');
        $this->setAttribs(array(
            'name'  => 'masterForm',
        ));
        $this->setDecorators(array(
            'FormElements',
            array('TabContainer', array(
                'id' => 'tabContainer',
                'style' => 'width: 500px; height: 550px;',
                'dijitParams' => array(
                    'tabPosition' => 'Top'
                ),
            )),
            'DijitForm',
        ));
        $assessDetails = new Zend_Dojo_Form_SubForm();
        $assessDetails->setAttribs(array(
            'name'   => 'assessTab',
            'legend' => 'Assessments Details',
            'dijitParams' => array(
                'title' => 'Assessments',
            ),
        ))
                ;
        

        $goals = new Zend_Dojo_Form_SubForm();
        $goals->setAttribs(array(
            'name'   => 'goalTab',
            'legend' => 'Goals',
            'dijitParams' => array(
                'title' => 'Goals',
            ),
        ))
                ;

        $currentStatus = new Zend_Dojo_Form_SubForm();
        $currentStatus->setAttribs(array(
            'name'   => 'currentTab',
            'legend' => 'Current Status',
            'dijitParams' => array(
                'title' => 'Current Status'
            ),
        ));

        $prediction = new Zend_Dojo_Form_SubForm();
        $prediction->setAttribs(array(
            'name'   => 'predictTab',
            'legend' => 'Grade Probability',
            'dijitParams' => array(
                'title' => 'Grade Probability'
            ),
        ));


       

        $this->addSubForm($assessDetails, 'assessDetails')
             ->addSubForm($goals, 'goals')
             ->addsubForm($currentStatus,'currentStatus')
             ->addSubForm($prediction, 'prediction')
            ;



    }
}

